package com.qust.EnDecryption;


import com.qust.EnDecryption.common.Constant;
import com.qust.EnDecryption.handle.AlgorithmTransmissionHandle;
import com.qust.EnDecryption.handle.AlgorithmicResourceCatchUpHandle;
import com.qust.EnDecryption.handle.EnDecryptionHandle;
import com.qust.EnDecryption.listener.ConnectListener;
import com.qust.EnDecryption.starter.Starter;
import com.qust.EnDecryption.zookeeper.ZkNode;
import com.qust.EnDecryption.zookeeper.ZkNodeProvide;
import com.qust.agreement.EnDecAgreement;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import lombok.extern.log4j.Log4j2;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;

@Log4j2
public class ServerStarter {
    static {
        Constant.ip = "127.0.0.1";
        Constant.port = 8132;
        Constant.monitoringPort = 3108;
        Constant.savePathPrefix="EnDecryption-netty-server/src/main/resources/jar1";
    }

    public static void main(String[] args) {
        Starter starter = new Starter();
    }
}
